//
//  BaseViewController.h
//  Less_Study
//
//  Created by Lj on 2016/10/23.
//  Copyright © 2016年 Lj. All rights reserved.
//
////////////////////////////////////////////////////010011000110010101110011011100110101111101010011011101000111010101100100011110010010000010011100000110111000001111001110011100000101011100111110110100100000111010100011111101010001111101100111000001101110000001101111001000001100010100110001000000101111110100111000001101110101101100010
////////////////////////////////////////////////////


#import <UIKit/UIKit.h>
#import "SGUserModel.h"
#import "AppDelegate.h"

@interface BaseViewController : UIViewController
@property (strong, nonatomic) UIView *navBar;
@property (copy,nonatomic) NSString * navigationTitle;
@property (nonatomic, assign) BOOL touchEnable;  // 默认是NO，当设置为YES后，可触发隐藏键盘事件


// 自定义导航栏
-(void)initNavBar:(NSString *)title;
-(void)initLoginNavBar:(NSString *)title;

// 系统导航栏返回按钮
- (void)initNavBarBackBtn;

// 将tabbar隐藏的push
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;

//返回
- (void)popViewController:(UIViewController *)viewController index:(NSInteger)index;

// 系统导航栏设置右侧按钮
- (void)setRightBarButtonItem:(UIBarButtonItem *)_rightBarButtonItem;

- (void)setLeftBarButtonItem:(UIBarButtonItem *)_leftBarButtonItem;

//生成背景图片
- (UIImage *)imageWithFrame:(CGRect)frame alphe:(CGFloat)alphe;

- (BOOL)isLogin;

@end
